home *** CD-ROM | disk | FTP | other *** search
- If you used your own sorting technique rather than the one built into
- AMOS, things will be easier. With 128 blocks the speed difference shouldn't
- really matter.
-
- Here's a code fragment for you to mess around with.
- I'm typing this straight from my head, so it isn't tested.
-
- For FOO=1 To 128
- For FOO2=1 to 128
- If NAME$(FOO)<NAME$(FOO2) And FOO<>FOO2
- Swap NAME$(FOO),NAME$(FOO2)
- Swap BANKNUM(FOO),BANKNUM(FOO2)
- EndIf
- Next
- Next
-
- As well as the NAME$() array, I've also added a BANKNUM array which
- relates to NAME$() to tell you which bank has which name.
-
- You may be able to get a better sorting algorithm yourself.
- Oh, and I'm not sure if the logic in the If statement is correct. You
- may have to adjust it to NAME$(FOO)>NAME$(FOO2).
-
- Maybe I'll be able to do more when I get the source.
-
- Hope it works,
- Nath.
-
-